import { configureStore } from '@reduxjs/toolkit' // 引入封装store的方法
import money from './money' //引入的reducer -> slice.reducer
import counterReducer from './reducer/counterReducer'

const store = configureStore({
    reducer:{ //可以有多个
        money,//余额的管理
        counter:counterReducer
    }
})
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch

export default store